from django.http import HttpResponse
from django.shortcuts import render
from .forms import CaptchaTestForm
# Create your views here.
def some_view(request):
    if request.POST:
        form = CaptchaTestForm(request.POST)

        # Validate the form: the captcha field will automatically
        # check the input
        if form.is_valid():
            return HttpResponse('Success')
    else:
        form = CaptchaTestForm()

    return render(request, 'template.html', {'form': form})